import request from '@/utils/request';

export function apiUpload(file) {
  const formData = new FormData();
  formData.append('file', file);
  return request({
    url: '/common/upload',
    method: 'post',
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    data: formData
  });
}
